The following example shows you how to perform a multiport calibration of the analyzer.
// Reset the analyzer
*RST
//
// Set cal kit as active kit for N50
:SENSE:CORRECTION:CKIT:N50:SELECT 'N 50 Ohm Dummy Kit'
//
// Select connectors for the ports
:SENSE1:CORRECTION:COLLECT:CONNECTION1 N50MALE
:SENSE1:CORRECTION:COLLECT:CONNECTION2 N50MALE
//
// Don't save the cal standard measurements with apply cal, i.e. with the commands
// :SENSE1:CORRECTION:COLLECT:SAVE or
// :SENSe1:CORRection:COLLect:SAVE:SELected
// Instead, use the global, channel-independent setting:
:SENSe:CORRection:COLLect:ACQuire:RSAVe:DEFault OFF
//
//
// Full one port = OSM
// Select cal procedure
:SENSe1:CORRection:COLLect:METHod:DEFine 'Test SFK OSM 1', FOPORT, 1
//
// Measure Standards
:SENSe1:CORRection:COLLect:ACQuire:SELected OPEN, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected SHORT, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected MATCH, 1
//
// Apply cal
:SENSe1:CORRection:COLLect:SAVE:SELected
//
//
// 2 port TOSM
// Select cal procedure
:SENSe1:CORRection:COLLect:METHod:DEFine 'Test SFK TOSM 12', TOSM, 1, 2
//
// Measure Standards
:SENSe1:CORRection:COLLect:ACQuire:SELected THROUGH, 1, 2
:SENSe1:CORRection:COLLect:ACQuire:SELected OPEN, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected SHORT, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected MATCH, 1
:SENSe1:CORRection:COLLect:ACQuire:SELected OPEN, 2
:SENSe1:CORRection:COLLect:ACQuire:SELected SHORT, 2
:SENSe1:CORRection:COLLect:ACQuire:SELected MATCH, 2
//
// Apply calibration
:SENSe1:CORRection:COLLect:SAVE:SELected
//
// Save / load cal files
// Save calibration in calibration file pool in directory
// C:\Rohde&Schwarz\Nwa\Calibration\Data
// the file name in the commands must not contain the path !
:MMEMORY:STORE:CORRection 1, 'OSM1 TOSM12.cal'
//
// load cal file from calibration file pool
:MMEMORY:LOAD:CORRection 1, 'OSM1 TOSM12.cal'